<?php require 'functions/required/template-top.php'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<?php wp_head(); ?>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />
<?php $scheme = get_option(PADD_THEME_SLUG . '_color_scheme'); ?>
<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() . '/schemes/' . $scheme . '/style.css' ?>" type="text/css" media="screen" />
<?php
$icon = get_option(PADD_THEME_SLUG . '_favicon_url','');
if (!empty($icon)) {
	echo '<link rel="shortcut icon" href="' . $icon . '" />' . "\n";
}
?>
<script type="text/javascript" src="<?php echo get_option('home'); ?>/wp-includes/js/jquery/jquery.js?ver=1.3.2"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.supersubs.js"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.superfish.js"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.cycle.js"></script>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/main.loading.js"></script>
<?php
$tracker = get_option(PADD_THEME_SLUG . '_tracker_head','');
if (!empty($tracker)) {
	echo stripslashes($tracker);
}
?>
</head>

<body <?php body_class(); ?>>
<?php
$tracker = get_option(PADD_THEME_SLUG . '_tracker_top','');
if (!empty($tracker)) {
	echo stripslashes($tracker);
}
?>
<div id="container">

	<p class="no-display"><a href="#skip-to-content">Skip to content</a></p>	
	
	<div id="header">
		<div class="pad append-clear">		
			<div class="box box-masthead">
				<?php $tag = (is_home()) ? 'h1' : 'p'; ?>
				<<?php echo $tag; ?> class="title"><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></<?php echo $tag; ?>>
				<p class="descr"><?php bloginfo('description'); ?></p>
			</div>
                        <!--o css esta no arquivo navigation.css-->
			<div id="edicao">
                            
                            <div align="right"><?php //get_search_form(); ?>
                                <form method="get" id="searchform" action="<?php echo get_option('siteurl'); ?>" style="margin-bottom: 15px">
                                    <input type="text" name="s" placeholder="Busque em nosso site!" size="42" class="finder_box"/>
                                    <input type="image" src="<?php echo get_option('siteurl'); ?>/wp-content/themes/carbonified/images/button-search.png" style="height: 23px; vertical-align: middle"/>
                                </form>
                            </div>
                            
                            <object style="width:347px;height:242px" >
                                <param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf?mode=mini&amp;embedBackground=%23000000&amp;backgroundColor=%23222222&amp;documentId=120705083020-a9f35e69aeff480ebcda7b82984731aa" />
                                <param name="allowfullscreen" value="true"/>
                                <param name="menu" value="false"/>
                                <param name="wmode" value="transparent"/>
                                <embed src="http://static.issuu.com/webembed/viewers/style1/v2/IssuuReader.swf" type="application/x-shockwave-flash" allowfullscreen="true" menu="false" wmode="transparent" style="width:420px;height:297px" flashvars="mode=mini&amp;embedBackground=%23000000&amp;backgroundColor=%23222222&amp;documentId=120705083020-a9f35e69aeff480ebcda7b82984731aa" />
                            </object>
                            
                        </div>
			<div id="menubar" class="box box-mainmenu">
				<h3>Main Menu</h3>
				<div class="interior">
					<?php wp_nav_menu(array('theme_location' => 'main','menu_class' => 'mainmenu')); ?>
				</div>
			</div>
		</div>
	</div>

	<a name="skip-to-content"></a>
	
	<?php if (is_home()) : ?>
	<div id="featured">
		<div class="pad">	
			<div class="box box-featured wrap-inner-3">
				<h2>Featured Posts</h2>		
				<div class="interior">
					<?php padd_theme_featured_posts(); ?>
				</div>
			</div>
		</div>
	</div>
	<?php /*
	<div id="teaser">
		<div class="pad append-clear">
			
				add_filter('excerpt_length','padd_theme_excerpt_pages_length');
				padd_theme_page_box(get_option(PADD_THEME_SLUG . '_post_about_page_id',1),'about-us');
				padd_theme_page_box(get_option(PADD_THEME_SLUG . '_post_services_page_id',1),'our-services');
				padd_theme_page_box(get_option(PADD_THEME_SLUG . '_post_contact_page_id',1),'contact-us');
				remove_filter('excerpt_length','padd_theme_excerpt_pages_length'); 
			
		</div>
	</div>
        */
        ?>
	
	<?php endif; ?>
       
	<div id="body">
		<div class="wrapper append-clear">
